import routes from './router.config';

export default {
  treeShaking: true,
  targets: {
    ie: 10
  },
  plugins: [
    // ref: https://umijs.org/plugin/umi-plugin-react.html
    ['umi-plugin-react', {
      antd: true,
      dva: {
        hmr: true
      },
      dynamicImport: true,
      title: '四川省农业信贷智能担保综合管理平台',
      // dll: true,

      routes: {
        exclude: [
          /models\//,
          /services\//,
          /model\.(t|j)sx?$/,
          /service\.(t|j)sx?$/,
          /components\//,
        ],
      },
    }],
  ],
  routes,

  history: 'hash',
  cssPublicPath: '', // css静态资源路径使用相对路径

  // extra configuration for egg
  runtimePublicPath: true,
  outputPath: '../public',
  publicPath: '',
  manifest: {
    fileName: '../../config/manifest.json',
    publicPath: '',
  }
}
